// pages/qualifying/paiwei/paiwei.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    rankArr: [
      {
        rankName: '知识白丁',
        imgSrc: '../../../images/paiwei_medal1.png',
        cost: 20,
        bonus: 40,
        backColorClass: 'pink',
        bright: 0,
        dark: 1
      },
      {
        rankName: '知识童生',
        imgSrc: '../../../images/paiwei_medal2.png',
        cost: 40,
        bonus: 100,
        backColorClass: 'violet',
        bright: 1,
        dark: 2
      },
      {
        rankName: '知识秀才',
        imgSrc: '../../../images/paiwei_medal3.png',
        cost: 80,
        bonus: 200,
        backColorClass: 'blue',
        bright: 2,
        dark: 3
      },
      {
        rankName: '知识童生',
        imgSrc: '../../../images/paiwei_medal2.png',
        cost: 40,
        bonus: 100,
        backColorClass: 'violet',
        bright: 1,
        dark: 2
      },
      {
        rankName: '知识童生',
        imgSrc: '../../../images/paiwei_medal2.png',
        cost: 40,
        bonus: 100,
        backColorClass: 'violet',
        bright: 1,
        dark: 2
      }
    ]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
  
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
  
  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
  
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {
  
  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {
  
  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {
  
  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {
  
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
  
  }
})